package com.example.teesystem.service;


import com.example.teesystem.entity.Knowledge;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teesystem.entity.vo.knowledge.ChapterKnowledgeResponseVO;
import com.example.teesystem.entity.vo.knowledge.KnowledgeResponseVo;
import com.example.teesystem.entity.vo.knowledge.KnowledgeUpdateVo;
import com.example.teesystem.entity.vo.knowledge.KnowledgeUploadVo;

import java.util.List;

/**
* @author 28131
* @description 针对表【t_knowledge】的数据库操作Service
* @createDate 2022-03-29 08:47:26
*/
public interface KnowledgeService extends IService<Knowledge> {
    
    boolean add(KnowledgeUploadVo knowledgeUploadVo);
    
    boolean add(List<KnowledgeUploadVo> knowledgeUploadVos);
    
    boolean update(KnowledgeUpdateVo knowledgeUpdateVo);
    
//    List<KnowledgeResponseVo> get(Integer courseId);
    
    List<ChapterKnowledgeResponseVO> getChapterKnowledge(Integer courseId);
    
    boolean delete(Integer id);
    
}
